<!doctype html>
<html>
<head>
<title>blog@admin|WonTube</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<#include "/admin/include/css.html">
</head>
<body>
<div id="page">
	<#include "/admin/include/header.ftl">
	<h1>&lt;Adding New Blog&gt;</h1> 	
	
	<div class="admin_content">  					
		<form id="add_blog_form">
		<input type="hidden" name="sortIndex" value="0" />
		<table>
			<tr><th>发布时间:<br />(格式 MM/dd/yyyy HH:mm:ss<br />时间部分可选)</th>
				<td><input type="text" name="createdString" value="${now?datetime}"/></td>
				<th>url-title<br />(类似payphone-lyrics-maroon5, 唯一性)</th>
				<td><input type="text" name="urlTitle"/></td>
			</tr>
			<tr><th>introduction: </th>
				<td><input type="text" name="introduction" /></td>
				<th>thumbnail: <br />(网络图片需要带http前缀. <br />其他图片相对项目根目录)</th>
				<td><input type="text" name="thumbnail" /></td>
			</tr>
			<tr><th>title<br />(blog title)</th>
				<td><input type="text" name="title" /></td>
				<th>meta-title: </th>
				<td><input type="text" name="metaTitle" /></td>
			</tr>
			<tr>
				<th>meta-description: </th>
				<td><input type="text" name="description" /></td>
				<th>meta-keywords: </th>
				<td><input type="text" name="keywords"  /></td>				
			</tr>	
			<tr><th>category: </th>
				<td>
					<select name="category">								
						<#if categories??>
							<#list categories as cate>
								<#assign cname = cate.categoryName>
								<option value="${cname}">${cname}</option>
				     		</#list>					
						</#if>						
					</select>
				</td>
				<th>tags: <br /></th>
				<td>
					<#if tags??>
					<#list tags as tag>
						<input type="checkbox" name="tagss" value="${tag.tagName}"/>${tag.tagName} &nbsp;
					</#list>
				</#if></td>
			</tr>	
			<tr>
				<th>author</th>
				<td><input type="text" name="author" value="" /></td>
			</tr>	
		</table>
		
		<div id="blog_content_div">
			<textarea id="blog_content" style="display:none"></textarea>
		</div>
		<input type="button" value="保存并预览" id="add_blog_btn"/>		
		</form>
    </div> 
    
	 <#include "/admin/include/footer.ftl">
</div>
</body>
<#include "/admin/include/js.html">
<script type="text/javascript" src="${contextPath}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${jsRoot}/admin/blog/blog_update.js"></script>
</html>